package com.sen.patterns.creational.builder.ex2;

/**
 * 各种装配步骤接口
 * @author sen
 */
public abstract class AutoBuilder {
	public void buildBase() {
		System.out.println("AutoBuilder-->buildBase()");
	}
	
	// 装配方法不一样
	public void addAutomobileItem(PartItem item) {
		System.out.println("AutoBuilder-->addAutomobileItem()");
	}
	
	//检查方法也不一样
	public void checkAutomobileItem(PartItem item) {
		System.out.println("AutoBuilder-->checkAutomobileItem()");
	}
	
	// 测试汽车方法
	public void testAutomobile() {
		System.out.println("AutoBuilder-->checkAutomobileItem()");
	}
	
	// 返回装配好的汽车
	public Automobile getFinishedAutomobile() {
		System.out.println("AutoBuilder-->getFinishedAutomobile()");
		return null;
	}
	
}
